Script: --on windowEvent wdID,wdName,objNo,objName,objValue¬¬Global gWindowPositions¬¬---------------------¬-- This is window #31¬---------------------¬¬if objValue="Open" then ¬ -- Restore old window position¬ set cursor to watch¬ put OldWindowPosition(31) into windowRect¬ if windowRect = empty then centerWindow wdName¬ else set the rect of window id wdid to windowRect¬ ¬ ¬ if there is a menuItem "Close" of menu "File" then¬ enable menuItem "Close" of menu "File"¬ end if¬ ¬else if objValue="Close" then ¬ -- save the window position¬ put "31" & tab & wdName & tab & wsGet(wdID,"0","Rect") into line 31 of gWindowPositions¬ if there is a menuItem "Close" of menu "File" then¬ disable menuItem "Close" of menu "File"¬ end if¬ ¬else if objValue="Suspend" then ¬ put frontWindow() into theFrontID¬ if wsGet(theFrontID,"0","HasCloseBox") <> "true" then¬ if there is a menuItem "Close" of menu "File" then¬ disable menuItem "Close" of menu "File"¬ end if¬ end if¬ ¬else if objValue="Resume" then ¬ if the short name of this background <> "Title" then ¬ lock screen¬ go cd 1 of bg "Title"¬ end if¬ if there is a menuItem "Close" of menu "File" then¬ enable menuItem "Close" of menu "File"¬ end if¬end if¬¬--end windowEvent
ItemType: LBL
Rect: 64,72,176,88
Text: Rebuild Title List
ItemType: LBL
Rect: 64,16,257,32
Text: Compact & Verify ComicBase
ItemType: LBL
Rect: 64,128,223,144
Text: Reset Program Settings
ItemType: TEXT
Rect: 64,88,374,112
TextFont: Geneva
TextSize: 9
Text: Makes sure that the list of titles matches the actual database. Use this if you ever find yourself choosing one title and going to another.
ItemType: TEXT
Rect: 64,32,374,56
TextFont: Geneva
TextSize: 9
Name: CompactInstructions
Text: Verifies the integrity of the database and frees up any unused space.
ItemType: TEXT
Rect: 64,144,374,168
TextFont: Geneva
TextSize: 9
Text: Resets window positions, dialog options and other program settings to their standard values.
ItemType: PICT
Rect: 10,16,56,59
Name: Compress ComicBase Button
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬send HandleCompactMenu to cd 3¬--end mouseUp
ItemType: PICT
Rect: 10,128,56,171
Name: Reset Preferences Button
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬¬Get WindowScript("Caution Alert","Reset ComicBase’s preferences?","Reset")¬¬if line 1 of it = "Reset" then ¬ send "ResetPrefs" to cd btn "Read/Write Prefs File" of cd 3¬ beep¬ Get Windowscript("Note Alert", "ComicBase’s settings were reset to their standard values.")¬end if¬¬--end mouseUp
ItemType: PICT
Rect: 10,72,56,115
Name: Rebuild Titles Button
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬answer "Are you sure you want to rebuild the list of titles? This may take several minutes." with "Cancel" or "Rebuild"¬if it = "Rebuild" then ¬ send RebuildTitles to cd btn "Rebuild Titles List" of cd 3¬end if¬--end mouseUp¬